home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.save / 000136_fdc@panix.com_Fri Dec 14 12:49:57 2007.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: reader1.panix.com!panix!not-for-mail
  2. From: Frank da Cruz <fdc@panix.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Screen Capture
  5. Date: Fri, 14 Dec 2007 17:49:47 +0000 (UTC)
  6. Organization: PANIX Public Access Internet and UNIX, NYC
  7. Lines: 41
  8. Message-ID: <slrnfm5ghr.8om.fdc@panix3.panix.com>
  9. References: <h654j.66697$RX.26340@newssvr11.news.prodigy.net> <13l6v29jqcmhl2e@corp.supernews.com> <g3J7j.77732$YL5.57974@newssvr29.news.prodigy.net> <13m3fqgakmrkc05@corp.supernews.com> <XWm8j.7512$AR7.2068@nlpi070.nbdc.sbc.com>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: panix3.panix.com
  12. X-Trace: reader1.panix.com 1197654587 26094 166.84.1.3 (14 Dec 2007 17:49:47 GMT)
  13. X-Complaints-To: abuse@panix.com
  14. NNTP-Posting-Date: Fri, 14 Dec 2007 17:49:47 +0000 (UTC)
  15. User-Agent: slrn/0.9.8.0 (NetBSD)
  16. Xref: panix comp.protocols.kermit.misc:15718
  17.  
  18. On 2007-12-14, 2damn <2damn@nospam.com> wrote:
  19. : My current self made project is to use kermit to automate some tasks on 
  20. : serial connections to a company system. Just to speed things up and save 
  21. : some carpal tunnel. I do not have and will not have any sort of 
  22. : administrator rights on the company system. I am just trying to have the 
  23. : kermit input and output commands run repetitive tasks. The problem is 
  24. : there are many exceptions to default scenarios and I think kermit can 
  25. : deal with them.
  26. :
  27. C-Kermit can handle text-mode dialogs just fine, and for that matter also
  28. menu-driven dialogs, if you can do this without specific reference to screen
  29. positions and coordinates.  For example, the host application paints a
  30. manu and at the bottom it prints "Choice?" and the user is supposed to enter
  31. the number (or whatever) of the desired menu item.  Well, if "Choice?" is
  32. the last thing that the host sends (which is something you can tell from
  33. a session log), then:
  34.  
  35.   clear input
  36.   input 10 Choice?
  37.   if failure (do something)
  38.   output 3\13
  39.  
  40. is all you need for waiting for the menu to paint itself (assuming it does
  41. so within 10 seconds) and to choose menu item number 3.
  42.  
  43. On the other hand, if you really need to reference specific screen
  44. coordinates or the contents of specifi screen fields
  45. , you can do this with Kermit 95 on Windows because, unlike
  46. C-Kermit, in incorporates its own terminal emulator and knows what is on the
  47. screen and where.
  48.  
  49. Perhaps if you describe a typical session of the type you want to automate,
  50. I can show you how to do it.  Meanwhile, take a look at the brief Kermit
  51. scripting tutorial here:
  52.  
  53.   http://kermit.columbia.edu/ckscripts.html
  54.  
  55. and the many sample scripts that are included in the script library, listed
  56. on the same page.
  57.  
  58. - Frank